﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace MxWeiXinPF.BLL
{
    public partial class user_grade
    {
        private readonly MxWeiXinPF.DAL.user_grade dal;
        private readonly MxWeiXinPF.Model.siteconfig siteConfig = new MxWeiXinPF.BLL.siteconfig().loadConfig();

        public user_grade()
        {
            this.dal = new MxWeiXinPF.DAL.user_grade(this.siteConfig.sysdatabaseprefix);
        }

        public int Add(MxWeiXinPF.Model.user_grade model)
        {
            return this.dal.Add(model);
        }

        public bool Delete(int id)
        {
            return this.dal.Delete(id);
        }

        public bool Exists(int id)
        {
            return this.dal.Exists(id);
        }

        public bool ExistsOrderNumber(int shopid, int wid, string ordernumber)
        {
            return this.dal.ExistsOrderNumber(shopid, wid, ordernumber);
        }

        public DataSet GetList(int Top, string strWhere, string filedOrder)
        {
            return this.dal.GetList(Top, strWhere, filedOrder);
        }

        public MxWeiXinPF.Model.user_grade GetModel(int id)
        {
            return this.dal.GetModel(id);
        }

        public string GetTitle(int id)
        {
            return this.dal.GetTitle(id);
        }

        public bool Update(MxWeiXinPF.Model.user_grade model)
        {
            return this.dal.Update(model);
        }
    }
}
